﻿<%@page contentType="text/vnd.wap.wml; charset=utf-8"%>
<%@ page import="java.io.*"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="common.*"%>
<%@ page import="wapbean.*"%>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org//DTD//wml_1.1.xml">   
<wml>
<%
	ContentFactory Fac = new ContentFactory();
	Vector ver = Fac.getWapModel();
	WapcategoryFactory Fac1 = new WapcategoryFactory();  
    // Vector ver1 = Fac1.getWapcategory1();
	//Vector ver2 = Fac1.getWapcategory2();
	//Vector ver3 = Fac1.getWapcategory3();
	//String ip=request.getRemoteAddr(); 
	//System.out.println("ip="+ip);
	//session.setAttribute("ip",ip);
	
%>
<card id="card1" title="乐游-手机游戏下载">   
<p align="left">

 <img src="/game3.0/img/logo.png" /><br />
     <% 
                  if(ver!=null&&!ver.isEmpty()){
                   int m=ver.size(); 
                   for(int i=0;i<m;i++){
                    Allbean bea=(Allbean)ver.elementAt(i); 
					  String CategoryID=bea.getCategoryID();
					  String MobileModelID=bea.getMobileModelID();
					  String ProviderID=bea.getProviderID();
					 
                 %>
    <%if(bea.getCategoryTypeID().equals("12")){%>
		 ★<a href="<%=bea.getActionPage()%>.jsp?CategoryID=<%=bea.getCategoryID()%>&amp;MobileModelID=<%=bea.getMobileModelID()%>&amp;ProviderID=<%=bea.getProviderID()%>"><%out.println(bea.getTitle());%> </a>
		 <%
		 }else if(bea.getCategoryTypeID().equals("5")){%>
		 ★<a href="<%=bea.getActionPage()%>"> <%out.println(bea.getTitle());%> </a>        
		 <% }
		 else if(bea.getCategoryTypeID().equals("2")){%>
		  <%//out.println("");%>          
		 <% }
		 else{
		     out.println(bea.getTitle());
		 }%> 
	<br /> 
	<%              boolean find = false;
	                 Vector ver4;
   	               if(bea.getCategoryTypeID().equals("1")){
					  ver4 = Fac1.getMobilemodelContent(CategoryID);
   	                if(ver4!=null){
                    int a=ver4.size(); 
              
                    for(int t=0;t<a;t++){
                    Allbean bea4=(Allbean)ver4.elementAt(t);
                   
   	 %> 
 
		 ★<a href="/game3.0/wappages/contentview.jsp?CategoryID=<%=bea4.getCategoryID()%>&amp;MobileModelID=<%=bea4.getMobileModelID()%>&amp;ProviderID=<%=bea4.getProviderID()%>&amp;contentId=<%=bea4.getContentId()%>&amp;gamename=<%=bea4.getTitle()%>&amp;ContentResourceID=<%=bea4.getContentResourceID()%>"><%out.println(bea4.getTitle());%> </a><br />
		 <%}}}  
		 else{
		          Vector ver5 = Fac1.getWapcategoryMobilemodel(CategoryID);
		            if(ver5!=null){
                    int g=ver5.size(); 
              
                    for(int s=0;s<g;s++){
                    Allbean bea5=(Allbean)ver5.elementAt(s);
                    %>
                     <a href="/game3.0/wappages/<%=bea5.getActionPage()%>.jsp?CategoryID=<%=bea5.getCategoryID()%>&amp;MobileModelID=<%=bea5.getMobileModelID()%>&amp;ProviderID=<%=bea5.getProviderID()%>"> <%out.println(bea5.getTitle());%> </a>-
                    <%
                    if(s==ver5.size()-1){
                     out.println("<br/>");    
                     }}}}}}%>      
	
	【<a href="wappages/help.jsp">客服咨询</a>】
	<br />
	wap.leyoou.cn
	
	</p>  
</card>
</wml>